/**
 * 
 */
package com.yaodian100.sina.examples.timeline;

import java.util.List;

import com.yaodian100.sina.weibo4j.Status;
import com.yaodian100.sina.weibo4j.Weibo;

/**
 * @author sina
 * 
 */
public class GetMentions {

	/**
	 * 获取@当前用户的微博列表
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
		System.setProperty("weibo4j.oauth.consumerSecret",
				Weibo.CONSUMER_SECRET);
		try {
			Weibo weibo = new Weibo();
			weibo.setToken(args[0], args[1]);
			List<Status> list = weibo.getMentions();
			for (Status status : list) {
				System.out.println(status.getId() + "  : " + status.getText());
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
